package cn.demoxy.model.entity;

import cn.demoxy.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 *
 * 任务表实体类
 * @author demo
 * @date 2022-08-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="DemoJob实体类", description="任务表")
public class DemoJob extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务名称")
    private String jobName;

    @ApiModelProperty(value = "任务组名")
    private String jobGroup;

    @ApiModelProperty(value = "任务类型")
    private String jobType;

    @ApiModelProperty(value = "执行文件")
    private String jobFile;

    @ApiModelProperty(value = "执行方法")
    private String jobMethod;

    @ApiModelProperty(value = "任务执行参数")
    private String jobParms;

    @ApiModelProperty(value = "任务cron表达式")
    private String jobCron;

    @ApiModelProperty(value = "错误执行策略")
    private Integer errorPolicy;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "任务状态")
    private Integer jobStatus;


}
